<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateOcpcBaiduTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('ocpc_baidu', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('mac_md5', 40)->default('');
            $table->string('oaid', 40)->default('');
            $table->string('oaid_md5', 40)->default('');
            $table->string('mac1', 40)->default('');
            $table->string('imei_md5', 40)->default('');
            $table->string('os', 10)->default('');
            $table->string('ip', 20)->default('');
            $table->text('ua');
            $table->string('android_id', 20)->default('');
            $table->string('click_id', 40)->default('');
            $table->string('client_ip', 20)->default('');
            $table->text('callback_url');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('ocpc_baidu');
    }
}
